package com.lnking.lnkingplace.model.enums;

/**
 * @className ResourceEnum
 * @Description 资源枚举类
 * @Author ldf
 * @Date 2020/6/23 16:08
 * @Version 1.0
 **/
public enum LnkingBusinessEnum implements BusinessEnumInterface {
    SUCCESS(200, "操作成功！"),
    ADDED_SUCCESSFULLY(200, "新增成功！"),
    UPDATE_SUCCESSFULLY(200, "编辑成功！"),
    LOGIN_SUCCESSFUL(200, "登录成功！"),
    SIGN_OUT_SUCCESSFUL(200, "登出成功！"),
    PARTIAL_REQUEST_SUCCEEDED(206, "部分操作成功"),
    SYSTEM_ERROR(999, "系统异常！"),
    FAIL(-1, "失败!"),
    ADDDE_FAIL(-1, "新增失败！"),
    LOGIN_ERROR(-2,"登录异常"),
    ;


    private Integer code;
    private String msg;

    LnkingBusinessEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }


}
